package edu.gdkm.demo;

import java.util.Scanner;

public class Demo9 {
    /*对输入分数进行分类，输出ABCD等级
    A:100-85,
    B:75-84,
    C:60-74,
    D:0-59
    * */
    public static void main(String[] args) {
        System.out.println("请输入你的分数：");
        Scanner scanner= new Scanner(System.in);
        int score=scanner.nextInt();
        if(score>100||score<0){
            System.out.println("成绩范围非法，分数范围在0-100分之间");
        }else if(score>=85){
            System.out.println("A");
        }else if(score>=75){
            System.out.println("B");
        }else if(score>=60){
            System.out.println("C");
        }else{
            System.out.println("D");
        }
    }
}
